package com.ruoyi.cat.service.impl;

import java.util.List;

import com.ruoyi.cat.domain.CatApplycashoutTable;
import com.ruoyi.cat.mapper.CatApplycashoutTableMapper;
import com.ruoyi.cat.service.ICatApplycashoutTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 提现申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-24
 */
@Service
public class CatApplycashoutTableServiceImpl implements ICatApplycashoutTableService
{
    @Autowired
    private CatApplycashoutTableMapper catApplycashoutTableMapper;

    /**
     * 查询提现申请
     * 
     * @param id 提现申请主键
     * @return 提现申请
     */
    @Override
    public CatApplycashoutTable selectCatApplycashoutTableById(Long id)
    {
        return catApplycashoutTableMapper.selectCatApplycashoutTableById(id);
    }

    /**
     * 查询提现申请列表
     * 
     * @param catApplycashoutTable 提现申请
     * @return 提现申请
     */
    @Override
    public List<CatApplycashoutTable> selectCatApplycashoutTableList(CatApplycashoutTable catApplycashoutTable)
    {
        return catApplycashoutTableMapper.selectCatApplycashoutTableList(catApplycashoutTable);
    }

    /**
     * 新增提现申请
     * 
     * @param catApplycashoutTable 提现申请
     * @return 结果
     */
    @Override
    public int insertCatApplycashoutTable(CatApplycashoutTable catApplycashoutTable)
    {
        return catApplycashoutTableMapper.insertCatApplycashoutTable(catApplycashoutTable);
    }

    /**
     * 修改提现申请
     * 
     * @param catApplycashoutTable 提现申请
     * @return 结果
     */
    @Override
    public int updateCatApplycashoutTable(CatApplycashoutTable catApplycashoutTable)
    {
        return catApplycashoutTableMapper.updateCatApplycashoutTable(catApplycashoutTable);
    }

    /**
     * 批量删除提现申请
     * 
     * @param ids 需要删除的提现申请主键
     * @return 结果
     */
    @Override
    public int deleteCatApplycashoutTableByIds(Long[] ids)
    {
        return catApplycashoutTableMapper.deleteCatApplycashoutTableByIds(ids);
    }

    /**
     * 删除提现申请信息
     * 
     * @param id 提现申请主键
     * @return 结果
     */
    @Override
    public int deleteCatApplycashoutTableById(Long id)
    {
        return catApplycashoutTableMapper.deleteCatApplycashoutTableById(id);
    }

    @Override
    public CatApplycashoutTable getApplyMoney(Long userId) {
        return catApplycashoutTableMapper.getApplyMoney(userId);
    }
}
